//
//  RZKNavigationController.m
//  WSHBussiness
//
//  Created by 💋        任泽坤　 on 2017/11/29.
//  Copyright © 2017年 💋        任泽坤　. All rights reserved.
//

#import "RZKNavigationController.h"

@interface RZKNavigationController ()

@end

@implementation RZKNavigationController
#pragma mark -- Nav性能的优化(保证Nav 只设置一次,节约性能)
//作用避免多次加载Nav 造成系统资源浪费 (此方法会在这个类被调用的时候<再引入头文件>的时候它会先去执行)
+(void)initialize{
    
    //获取NavigationBar
    //只要遵守了UIAppearance协议的类，都可以设置主题
    UINavigationBar * navBar = [UINavigationBar appearance];
    //设置导航栏背景图片
    [navBar setBackgroundImage:[UIImage imageNamed:@"nav_backImage"] forBarMetrics:(UIBarMetricsDefault)];
    
    //设置导航栏文字的大小
    [navBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor blackColor],NSFontAttributeName:[UIFont boldSystemFontOfSize:20.f]}];
    
}


- (void)viewDidLoad {
    [super viewDidLoad];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
